//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.imu.purse.modules.sms;

import java.io.Serializable;
import java.util.Map;

public class SMSMessage implements Serializable
{
    private static final long serialVersionUID = -2528987129333226739L;
    SMSMessage.Type type;
    String authcode;
    String phone;
    Map<String, String> params;

    public SMSMessage() {
    }

    public SMSMessage(SMSMessage.Type type, String phone, String authcode) {
        this.type = type;
        this.phone = phone;
        this.authcode = authcode;
    }

    public String getAuthcode() {
        return this.authcode;
    }

    public void setAuthcode(String authcode) {
        this.authcode = authcode;
    }

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public SMSMessage.Type getType() {
        return this.type;
    }

    public void setType(SMSMessage.Type type) {
        this.type = type;
    }

    public void setParams(Map<String, String> params) {
        this.params = params;
    }

    public static enum Type
    {
        REGISTER("0", "SMS_122475039"),
        LOSTPWD("1", "SMS_122410042"),
        WITHDRAW("2", "SMS_122355051"),
    	LOGIN("3", "SMS_122355052"),
    	IDENTIY("4", "SMS_122355053"),
    	IMU_ERROR("5","SMS_122355054"),
        PAY_PWD("6","SMS_122355055");


    	private String type;
        private String id;

        private Type(String type, String id) {
        	this.type = type;
            this.id = id;
        }

        public String getType() {
            return this.type;
        }
        
        public String toString() {
            return this.id;
        }
    }
}
